home *** CD-ROM | disk | FTP | other *** search
- Path: news.mistral.co.uk!usenet
- From: ghira@mistral.co.uk (Adam Atkinson)
- Newsgroups: comp.lang.c,comp.sys.amiga.programmer
- Subject: Re: pointer conversion error
- Date: 25 Mar 96 22:34:08 +0000
- Organization: Mistral Internet (Brighton)
- Message-ID: <676.6658T1354T436@mistral.co.uk>
- References: <4j39n1$mh4@news.xs4all.nl>
- NNTP-Posting-Host: l65.mistral.co.uk
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- On 24-Mar-96 10:55:29, Falstaff said:
- >ghira@mistral.co.uk (Adam Atkinson) writes:
-
- >>my c compiler (SAS/C version 6.56) creates a warning about the following:
-
- >> printf("%u %u %u \n", i, l, h);
-
- >>three.c 36 Warning 104: conversion from pointer to const/volatile to pointer
- >>to non-const/volatile
-
- >>What am I doing wrong? i,l and h are unsigned longs.
-
- >Seems like the printf() prototype is missing. #include <stdio.h>
-
- actually, it turns out I should have used %lu not %u. oops
-
- Adam Atkinson - ghira@mistral.co.uk / etlaman@etlxdmx.ericsson.se
- If I were a fuzzy-wuzzy bear, 3 would be a perfect square.
- If I were a bumble bee, Z would be a UFD.
-
-
-